package day0227;

import java.nio.charset.Charset;
import java.nio.charset.StandardCharsets;

public class Demo {

    public static void main(String[] args) {
        String str = "他说：\"明天要放假\"";

        String textBlock = """ 
                他说："明天要放假"。
                    我: "真好"。
                """;

        String name = "张三"; // 字面量
        name = "李四";
        String s = new String("张三"); // 字符串对象
        System.out.println(str);

        Student stu = new Student("张三");

        String n= "abc";
        for (int i = 0; i < 10; i++) {
            n += i;
        }

        System.out.println(Charset.defaultCharset().toString());

        if (Charset.isSupported("big5")) {
            Charset charset = Charset.forName("big5");
        }

        Charset utf8 = StandardCharsets.UTF_8;

    }
}

class Student {

    final String name;


    public Student(String name){
        this.name = name;
    }
}
